//
//  User.swift
//  weibo
//
//  Created by Qing on 2017/7/24.
//  Copyright © 2017年 成哥哥. All rights reserved.
//

import UIKit

class User: NSObject {
    
    //  用户UID
    var id: Int = 0
    //  用户昵称
    var screen_name: String?
    //  用户头像地址（中图），50×50像素
    var profile_image_url: String?
    // 认证等级 1 - 7
    var mbrank: Int = 0
    //  是否是微博认证用户，0：微博个人认证，3、7：官方认证，-1：未认证
    var verified_type: Int = 0
    
    init(dict: [String: Any]) {
        
        super.init()
        
        setValuesForKeys(dict)
        
    }
    
    override func setValue(_ value: Any?, forUndefinedKey key: String) {}
    
    override var description: String {
        
        let kyes = ["id", "screen_name", "profile_image_url", "mbrank", "verified_type"]
        
        return dictionaryWithValues(forKeys: kyes).description
    }

}
